package Atomic;

/**
 * @author: QianMo
 * @date: 2021/12/22 17:01
 * @mark:
 */
public class StringDemo {
    public static void main(String[] args) {
        String a = "浙江省";
        String b = "湖州市";
        String c = "安吉县";
        String address = "浙江省湖州市安吉县天荒坪镇025乡道";
        String asd ="天荒坪镇";
        Integer size = asd.length()+a.length()+b.length()+c.length();
//        System.out.println(address.substring(size));
        int i = address.lastIndexOf(asd);
        System.out.println(address.substring(i+asd.length()));
    }
}
